'''
Created on 12/11/2011

@author: leo
'''
from fifo import Fifo
from Queue import Queue
from pcb import PCB

def main():
    q = Queue()
    p1= PCB(0,0,[],2)
    q.put(p1)
    
    f = Fifo(q)
    
    print f.takeProgram()

    
if __name__ == "__main__":
    main()